tools/libs/light: correct bitmap operations
authorJuergen Gross <jgross@suse.com>
Fri, 6 Nov 2020 14:05:04 +0000 (15:05 +0100)
committerWei Liu <wl@xen.org>
Fri, 6 Nov 2020 16:03:33 +0000 (16:03 +0000)
commit4196b1523aebe0ed929accba318d5e833d7ff6b3
treea3e7fe546b62fe9cfb8d2a64013b2ca26eedf9a4
parent8aac8e0ef43a452d0b565d63e4943c275badba3f
tools/libs/light: correct bitmap operations

Libxl bitmap operations for single bits (test, set, reset) take the bit
number as a signed integer without testing the value to be larger than
0.

Correct that by adding the appropriate tests.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/light/libxl_utils.c